package com.qf.smsplatform.monitor.api;

import com.qf.smsplatform.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;
import java.util.Set;

/**
 * @Author: LeeRui
 * 2021/2/3 下午 7:59
 **/
@FeignClient("sms-platform-cache")
public interface CacheService {

    //根据key查询key-set结构中value
    @RequestMapping(value = "/cache/smembers/{key}", method = RequestMethod.GET)
    public Set<String> smembers(@PathVariable("key") String key);

    //通过key获取多个filed-value值
    @RequestMapping(value = "/cache/hmget/{key}", method = RequestMethod.GET)
    public Map hMGet(@PathVariable("key") String key);


}
